package com.jiu345.users.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiu345.api.mapper.BaseMapperPlus;
import com.jiu345.api.pojo.vo.CartVo;
import com.jiu345.users.pojo.Address;
import com.jiu345.users.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * package:UserMapper
 *
 * @author MrLei QQ:235921049
 * desc:用户收货地址
 * @Date 2024.07.29 15:19
 */
public interface AddressMapper extends BaseMapperPlus<Address,Address> {
    /**
     * 查询用户收货地址列表
     * @param page 分页对象
     */
    Page<Address> queryPageList(@Param("page") Page<Address> page, @Param("bo") Address bo);

    //查询登录用户的所有收货地址
    List<Address> selectByUserIdAddresses(Long userId);
}
